<?php

use think\facade\Db;
1
if($da1['sub_mch_id']!==null&&$room['sub_mch_id']!==null){
    Db::name('mini_room_list')->where('id', $da1['id'])->update($dal);
}else{
    $weixinpay->fzorder($mch_id='1642498196',$room['sub_mch_id'],$appid='wx2088acb6d9fc585a',$sub_appid='wx2088acb6d9fc585a',$transaction_id,$order_on,$receivers=[['type'=>'MERCHANT_ID','account'=>$da1['sub_mch_id'],'amount'=>round($data['price'],2)*100]]);

}

2
if($da2['sub_mch_id']!==null&&$room['sub_mch_id']!==null){
    Db::name('mini_room_list')->where('id', $da2['id'])->update($da2);
}else{
    $weixinpay->fzorder($mch_id='1642498196',$room['sub_mch_id'],$appid='wx2088acb6d9fc585a',$sub_appid='wx2088acb6d9fc585a',$transaction_id,$order_on,$receivers=[['type'=>'MERCHANT_ID','account'=>$da2['sub_mch_id'],'amount'=>round($data['price'],2)*100]]);

}

3
if($da2['sub_mch_id']!==null&&$room['sub_mch_id']!==null){
    Db::name('mini_room_list')->where('id', $da3['id'])->update($da3);
}else{
    $weixinpay->fzorder($mch_id='1642498196',$room['sub_mch_id'],$appid='wx2088acb6d9fc585a',$sub_appid='wx2088acb6d9fc585a',$transaction_id,$order_on,$receivers=[['type'=>'MERCHANT_ID','account'=>$da3['sub_mch_id'],'amount'=>round($data['price'],2)*100]]);

}

quyu

if($da1['sub_mch_id']!==null&&$room['sub_mch_id']!==null){
    Db::name('mini_room_list')->where('id', $da['id'])->update($da);
}else{
    $weixinpay->fzorder($mch_id='1642498196',$room['sub_mch_id'],$appid='wx2088acb6d9fc585a',$sub_appid='wx2088acb6d9fc585a',$transaction_id,$order_on,$receivers=[['type'=>'MERCHANT_ID','account'=>$da['sub_mch_id'],'amount'=>round($data['price'],2)*100]]);

}

ziji
   if($room['sub_mch_id']!==null){
       Db::name('mini_room_list')->where('id', $room_id)->update($info);
   }
平台
  $weixinpay->fzorder($mch_id='1642498196',$room['sub_mch_id'],$appid='wx2088acb6d9fc585a',$sub_appid='wx2088acb6d9fc585a',$transaction_id,$order_on,$receivers=[['type'=>'MERCHANT_ID','account'=>$da1['sub_mch_id'],'amount'=>round($price,2)*100]]);

